package com.einmeer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.einmeer.entity.UmsAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author einmeer
 * @since 2024-03-18
 */
public interface UmsAdminService extends IService<UmsAdmin> {
    IPage<UmsAdmin> list(Integer pageNo, Integer pageSize,String name);
    boolean add(String name, String phone, String email, LocalDate birthday, String password, MultipartFile file);
    // 判断字段是否重复
    boolean check(String field,String value);
}
